<?php echo $this->render('common/header.phtml'); ?>
<?php $this->headLink()->appendStylesheet($this->dirCss.'/course.css'); ?>
	
	
	<div class="table">
        <div class="row thead">
            <div class="img-status">&nbsp;</div>
            <div><?php echo $this->translate('Khóa học');?> </div>
            <div><?php echo $this->translate('Bài viết cuối'); ?></div>
            <div><?php echo $this->translate('Số bài viết'); ?></div>
        </div>
        
        
        <?php if(!empty($this->taxonomyList)){?>
        	<?php foreach($this->taxonomyList as $oneTaxonomy){?>
        		<div class="row tbody">
        		
		            <div class="img-status"><img src="<?php echo $this->baseUrl('/public/images/system/forum_old.png'); ?>" alt="" /></div>
		            
		            
		            <div class="course">
		            
		            	<span class="course-title"><a href="javascript:;" ><?php echo $oneTaxonomy['name'][$this->defaultLanguage]?></a> <!-- (xx viewing)  --></span>
		            	<ul>
		            		<?php if(!empty($oneTaxonomy['category'])){?>
		            			<?php foreach($oneTaxonomy['category'] as $oneCategory){?>
		            				<li><a href="<?php echo $this->baseUrl('category/index/id/'.$oneCategory['id']);?>"><?php echo $oneCategory['name'][$this->defaultLanguage]?></a></li>
		            			<?php }?>
		            		<?php }?>
						</ul>
		            </div>
		            
		            <div class="last-post">
		            	<?php if(!empty($oneTaxonomy['lastPost'])){?>
			            	<span><a href="<?php echo $this->baseUrl('category/page/id/'.$oneTaxonomy['lastPost']['id']);?>"><?php echo $oneTaxonomy['lastPost']['name']; ?></a></span>
			            	<span class="author clr-l"><?php if(!empty ($oneTaxonomy['lastPost']['author'])) echo $this->translate('By ').$oneTaxonomy['lastPost']['author'] ?></span>
			            	<a href="<?php echo $this->baseUrl('category/page/id/'.$oneTaxonomy['lastPost']['id']);?>" class="view-detail"></a>
			            	<span class=" fright last-modify"><?php echo @ date('d-m-Y H:i', strtotime($oneTaxonomy['lastPost']['last_modify'])); ?></span>
		            	<?php }?>
		            </div>
		            <div class="number-of-post"><?php echo $oneTaxonomy['numberOfPost'] ?></div>
		        </div><!-- END .row -->
        	<?php }?>
        <?php }?>
        

<?php /*?>
        <div class="row tbody">
            <div class="img-status"><img src="<?php echo $this->baseUrl('/public/images/system/forum_old.png'); ?>" alt="" /></div>
            <div class="course">
            	<span class="course-title"><a href="javascript:;" >Thầy cô</a> (1 viewing)</span>
            	<ul>
	            	<li><a href="javascript:;">Nội quy về việc sử dụng chữ ký.</a></li>
					<li><a href="javascript:;">Bài viết 2</a></li>
					<li><a href="javascript:;">Bài viết 3</a></li>
					<li><a href="javascript:;">Bài viết 4</a></li>
				</ul>
            </div>
            <div class="last-post">
            	<span><a href="javascript:;">Nội quy về việc sử dụng chữ ký.</a></span>
            	<span class="author clr-l">by abc</span>
            	<span class="view-detail"></span>
            	<span class=" fright last-modify">22-03-2012 22:30</span>
            	
            </div>
            <div class="number-of-post">70</div>
        </div>
        
        <div class="row tbody">
            <div class="img-status"><img src="<?php echo $this->baseUrl('/public/images/system/forum_new.gif'); ?>" alt="" /></div>
            <div class="course">
            	<span class="course-title"><a href="javascript:;" >Thầy cô</a> (1 viewing)</span>
            	<ul>
	            	<li><a href="javascript:;">Nội quy về việc sử dụng chữ ký.</a></li>
					<li><a href="javascript:;">Bài viết 2</a></li>
					<li><a href="javascript:;">Bài viết 3</a></li>
					<li><a href="javascript:;">Bài viết 4</a></li>
				</ul>
            </div>
            <div class="last-post">
            	<span><a href="javascript:;">Nội quy về việc sử dụng chữ ký.</a></span>
            	<span class="author clr-l">by abc</span>
            	<span class="view-detail"></span>
            	<span class=" fright last-modify">22-03-2012 22:30</span>
            	
            </div>
            <div class="number-of-post">70</div>
        </div>
        
    
    	<div class="row tbody">
            <div class="img-status"><img src="<?php echo $this->baseUrl('/public/images/system/forum_old.png'); ?>" alt="" /></div>
            <div class="course">
            	<span class="course-title"><a href="javascript:;" >Thầy cô</a> (1 viewing)</span>
            	<ul>
	            	<li><a href="javascript:;">Nội quy về việc sử dụng chữ ký.</a></li>
					<li><a href="javascript:;">Bài viết 2</a></li>
					<li><a href="javascript:;">Bài viết 3</a></li>
					<li><a href="javascript:;">Bài viết 4</a></li>
				</ul>
            </div>
            <div class="last-post">
            	<span><a href="javascript:;">Nội quy về việc sử dụng chữ ký.</a></span>
            	<span class="author clr-l">by abc</span>
            	<span class="view-detail"></span>
            	<span class=" fright last-modify">22-03-2012 22:30</span>
            	
            </div>
            <div class="number-of-post">70</div>
        </div>
<?php /**/?>
        
	</div><!--  END .table -->
<?php echo $this->render('common/footer.phtml'); ?>